import request from '../utils/request.js'
//获取列表
export function getList(data) {
  return request({
    url: '/events/list',
    method: 'post',
    data
  })
}
//新增活动
export function addList(data) {
  return request({
    url: '/events/events_subject',
    method: 'post',
    data
  })
}
//编辑活动
export function updateList(data) {
  return request({
    url: '/events/update',
    method: 'put',
    data
  })
}
//删除
export function deleteList(id) {
  return request({
    url: `/events/delete/${id}`,
    method: 'delete'
  })
}
